<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>遍历数组元素</title>
</head>
<body>
	<h1>遍历数组元素</h1><hr>
	<script type="text/javascript">
		var arr0 = new Array("PHP", "Java", "Linux", "Apache");
		document.write("<pre>");
		for(var i=0; i<arr0.length; i++) {
			document.write(" " + arr0[i]);
		}
		alert(arr0.length);
	</script>	
	
	
</body>
</html>